import { exInput, exIcon, exSizeSelect, exSelect, exSwitch } from '@ve/common/components/extension'
export default {
  VERSION: '20220606',
  type: 'uiPdaButton',
  name: '按钮',
  icon: 'radio-button-line',
  //数据别名
  // dataName: 'uiButton_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  isChecked: true,
  extension: {
    size: exSizeSelect('尺寸', 'large'),
    icon: exIcon('图标选择器', ''),
    value: exInput('名称', '按钮'),
    type: exSelect('颜色类型', '', [
      { value: 'text', label: '文字' },
      { value: 'primary', label: '蓝色' },
      { value: 'success', label: '绿色' },
      { value: 'info', label: '灰色' },
      { value: 'warning', label: '黄色' },
      { value: 'danger', label: '红色' },
    ]),
    color: {
      type: 'exInput',
      name: '字体颜色',
      value: '',
    },
    round: exSwitch('圆角', false),
    plain: exSwitch('朴素按钮', false),
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    backMenu: exSwitch('返回控制面板', false),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  // logicInstruction: [],
}
